package com.zzx.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzx.common.core.page.TableDataInfo;
import com.zzx.common.utils.PageUtils;
import com.zzx.business.domain.BusinessFlow;
import com.zzx.business.vo.BusinessFlowVo;
import com.zzx.business.mapper.BusinessFlowMapper;
import com.zzx.business.service.IBusinessFlowService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 运输路径信息Service业务层处理
 *
 * @author Z、zx
 * @date 2024-08-21
 */
@Service
public class BusinessFlowServiceImpl extends ServiceImpl<BusinessFlowMapper, BusinessFlow> implements IBusinessFlowService {

    @Override
    public TableDataInfo<BusinessFlowVo> queryList(BusinessFlowVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<BusinessFlowVo> queryAll(BusinessFlowVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public BusinessFlowVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
